package com.tunnel.home.timer;

import org.axe.annotation.ioc.Autowired;
import org.axe.extra.timer.TimerTask;

import com.tunnel.home.dao.UserDao;

/**
 * 更新用户是否会员过期
 */
public class UserStatusTimer extends TimerTask{

	@Autowired
	private UserDao userDao;
	
	@Override
	public String name() {
		return "UserStatusTimer";
	}

	@Override
	public int timeSec() {
		return 60;//每60秒执行一次
	}

	@Override
	public void doSomething() {
		userDao.refreshUserStatus();
	}

}
